<%@ page language="java"  import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ taglib prefix="form" uri="http://www.springframework.org/tags/form" %>
<%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%
String path = request.getContextPath();
String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    <title>创建sysuserrole</title>
    <script language="javascript">
    function add(){
	   var sysUserId=document.getElementsByName("sysUserId")[0];
	   if(sysUserId.value ==null || sysUserId.value  == ""){
	       alert("sysUserId不能为空……");
	       sysUserId.value ="";
	       sysUserId.focus();
	       return false;
	    }
	   var sysRoleId=document.getElementsByName("sysRoleId")[0];
	   if(sysRoleId.value ==null || sysRoleId.value  == ""){
	       alert("sysRoleId不能为空……");
	       sysRoleId.value ="";
	       sysRoleId.focus();
	       return false;
	    }
	   document.forms[0].submit();
	}
    function goback(){
       location.href="sysuserroleView.do";
    }
   </script>
  </head>
  <body>
  <form action="sysuserroleAdd.do" method="post">  
  <table bgcolor="#CCFFFF" border ="0" bordercolor="#969696"  width="100%" cellpadding="3" cellspacing="0">
	<tr bgcolor="#99CCFF"><td colspan="100%">sysuserroleAdd</td></tr>
    <tr><td colspan="100%"><hr size="1" color="#9999FF"></hr></td></tr>
	 <tr><td>sysUserId：
	 <input type="text" name="sysUserId"></td></tr>
	 <tr><td>sysRoleId：
	 <input type="text" name="sysRoleId"></td></tr>
	 <tr><td colspan="100%"><hr size="1" color="#9999FF"></hr></td></tr>
	 <tr height="50">
	<td colspan="100%" align="right">
	<input type="button" onclick="add()" value="add" style="background:#CCFFFF"/>&nbsp;&nbsp;&nbsp;
    <input type="button" onclick="goback()" value="goback" style="background:#CCFFFF"/>&nbsp;&nbsp;&nbsp;&nbsp;
	</td></tr>
 </table>
  </form>
  </body>
</html>

